<template>
  <div class="page-tools">
    <div class="container">
      <div class="left">
        <i class="el-icon-warning" />
        <!-- <span>共16条记录</span> -->
        <slot name="left">
          共16条记录
        </slot>
      </div>
      <div class="right">
        <slot name="right">右侧内容</slot>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.container {
    display: flex;
    // center 所有子元素居中
    // space-between 两边贴边对齐
    // space-around 两边分散对齐
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
  .left {
    background-color: #e6f7ff;
    padding: 8px;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    i.el-icon-warning {
      color: #1f99e4
    }
    span {
      margin-left: 10px;
    }
  }
  .right {
    // background-color: rgb(25, 227, 177);
  }
}
</style>
